﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Animal
    {
        public void eat() {
            Console.WriteLine("吃");
        }
    }
    interface Iclimb {
        void climb();
    }
    interface Iswim {
        void swim();
    }
    class cat:Animal,Iclimb
    {
        public void climb() {
            Console.WriteLine("猫猫会爬树");
        }
    }
    class dog : Animal, Iswim
    {
        public void swim()
        {
            Console.WriteLine("狗狗会狗刨");
        }
    }
    class duck : Animal, Iswim
    {
        public void swim()
        {
            Console.WriteLine("鸭子会游泳");
        }
    }
    class Money : Animal, Iclimb
    {
        public void climb()
        {
            Console.WriteLine("猴子会爪巴");
        }
    }
}
